Skip to content

Feat add mesh to canvas pos helper#40

Merged
michealparks merged 11 commits into
threlte:mainfrom
mattmacf98:FEAT-add-mesh-to-canvas-pos-helper
Apr 16, 2026
Merged

Feat add mesh to canvas pos helper#40
michealparks merged 11 commits into
threlte:mainfrom
mattmacf98:FEAT-add-mesh-to-canvas-pos-helper

Conversation

@mattmacf98

@mattmacf98 mattmacf98 commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Description

This pr adds a helper function for browser based tests which use a real canvas to get the mesh's canvas position so users can make subsequent vitest browser functions to invoke clicks and other interaction to the canvas instead of using a direct invocation on the mesh itself with fireEvent

Testing

  • added the new test and ran it

@changeset-bot

changeset-bot Bot commented Apr 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f3d2abb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@threlte/test Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@michealparks michealparks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@michealparks michealparks merged commit 2258ede into threlte:main Apr 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants